package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 套管居中度分析结果 对应表 CM_CENTRICITY_RESULT
public class CM_CentricityResult extends BABaseEntity {
    @Id
    @GenericGenerator(name="cmFrictionResultGenerator", strategy="uuid")
    @GeneratedValue(generator="cmFrictionResultGenerator")
    private String CM_CentricityResult_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "DEPTH")
    private Double depth;

    @Basic
    @Column(name = "WELLDEFLECTION")
    private Double wellDeflection;

    @Basic
    @Column(name = "AZIMUTH")
    private Double azimuth;

    @Basic
    @Column(name = "ANGULAR")
    private Double angular;

    @Basic
    @Column(name = "TYPE", length = 50)
    private String type;

    @Basic
    @Column(name = "MODEL", length = 50)
    private String model;

    @Basic
    @Column(name = "OUTERDIAMETER")
    private Double outerDiameter;

    @Basic
    @Column(name = "LENGTH")
    private Double length;

    @Basic
    @Column(name = "CENTRALIZER1")
    private Double centralizer1;

    @Basic
    @Column(name = "CENTRALIZER2")
    private Double centralizer2;

    @Basic
    @Column(name = "TENSILEFORCE")
    private Double tensileForce;

    @Basic
    @Column(name = "RESETFORCE")
    private Double resetForce;

    @Basic
    @Column(name = "RESETFORCEV")
    private Double resetForceV;

    @Basic
    @Column(name = "RESETFORCES")
    private Double resetForceS;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
